home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Enlighten DSM 1.1
/
SGI EnlightenDSM 1.1.iso
/
sco5x
/
common
/
config
/
remlp.plate
< prev
next >
Wrap
Text File
|
1998-06-30
|
1KB
|
96 lines
#!/bin/sh
# lp interface for cross platform printing
#
# SID @(#)remlp.plate.D 1.2 95/10/16
# Copyright (c) 1990-1998 Enlighten Software Solutions, Inc.
#
SPOOLER=att
ENLIGHTEN=
HOST=
REMPR=
ret=0
PATH=$PATH:$ENLIGHTEN/bin
export ENLIGHTEN PATH
if test "$SPOOLER" = ucb
then
#
# Interface for Berkeley printer spooler
#
remlpr -s -h "$HOST" -P$REMPR
ret=$?
fi
if test "$SPOOLER" = aix
then
#
# Interface for IBM AIX printer spooler
#
progname="$0"
username="$LOGNAME"
copies=1
options="$1"
shift;
for file in $*
do
tmp=0
remlp -s -h "$HOST" -d "$REMPR" -u "$username" -n "$copies" \
-o "$options" < $file
tmp=$?
if test "$tmp" -ne 0
then
ret=$tmp
fi
done
fi
if test "$SPOOLER" = att
then
#
# Interface for AT&T printer spooler
#
progname="$0"
requests="$1"
username="$2"
title="$3"
copies="$4"
options="$5"
shift; shift; shift; shift; shift
for file in $*
do
tmp=0
if test -n "$title"
then
remlp -s -h "$HOST" -d "$REMPR" -u "$username" -n "$copies" \
-o "$options" -t "$title" < $file
else
remlp -s -h "$HOST" -d "$REMPR" -u "$username" -n "$copies" \
-o "$options" < $file
fi
tmp=$?
if test "$tmp" -ne 0
then
ret=$tmp
fi
done
fi
exit $ret